
package com.yimixian.app.store;

import com.yimixian.app.R;
import com.yimixian.app.activity.BaseNaviFragmentGroupActivity;
import com.yimixian.app.goods.GoodDetailFragmentGroup;
import android.os.Bundle;
import android.support.v4.app.Fragment;

public class StoreDetailActivity extends BaseNaviFragmentGroupActivity {
    public static final String EXTRA_STORE = "extra_store";
    public static final String EXTRA_STORE_ID = "extra_store_id";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_store_detail);
        setTopNavi(R.drawable.ic_back_selector,
                "", getString(R.string.store_detail_title_text),
                null, null);
    }

    @Override
    protected void initPrimaryFragment() {
        switchPrimaryFragment(0);
    }

    @Override
    protected Class<? extends Fragment> getPrimaryFragmentClass(int fragmentId) {
        return StoreDetailFragment.class;
    }

    @Override
    protected Bundle getPrimaryFragmentArguments(int fragmentId) {
        return getIntent().getExtras();
    }

    @Override
    protected int getPrimaryFragmentStubId(int fragmentId) {
        return R.id.content_frame;
    }

}
